package com.huawei.appgallery.essentialapp.api;

import com.huawei.appgallery.foundation.card.base.bean.AppInfoBean;
import com.huawei.appgallery.jsonkit.api.JsonBean;
import java.util.List;
import o.bqj.h;
import o.ContentManager;
import o.CollectCheck;

public class EssentialAppDataBean extends JsonBean {
    private boolean hasGiftApp;
    private String hasGiftText_;
    private List<OneAppInfoBean> latelyUsedApps_;
    private String latelyUsedDesc_;
    private String latelyUsedListTitle_;
    private int latelyUsedSelectNumber_;
    private int mode_;
    private int pageType;
    private List<OneAppInfoBean> topApps_;
    private String topListDesc_;
    private String topListTitle_;
    private int topSelectNumber_;
    private int useTopListThreshold_;

    public static class OneAppInfoBean extends AppInfoBean {
        private int hasGift_;
        private int locType;
        private int pos;
        private boolean selected;

        public int ˊ() {
            return this.hasGift_;
        }

        public boolean ॱ() {
            return this.selected;
        }

        public void ॱ(boolean z) {
            this.selected = z;
        }

        public int ˏ() {
            return this.locType;
        }

        public void ॱ(int i) {
            this.locType = i;
        }

        public int ˋ() {
            return this.pos;
        }

        public void ˊ(int i) {
            this.pos = i;
        }
    }

    public void ˎ() {
        if (!CollectCheck.isEmpty(this.latelyUsedApps_)) {
            this.pageType = 2;
        } else if (CollectCheck.isEmpty(this.topApps_)) {
            this.pageType = 0;
        } else {
            this.pageType = 1;
        }
    }

    public int ˊ() {
        return this.pageType;
    }

    public int ॱ() {
        return this.mode_;
    }

    public void ˎ(int i) {
        this.mode_ = i;
    }

    public List<OneAppInfoBean> ˋ() {
        return this.topApps_;
    }

    public void ˎ(List<OneAppInfoBean> list) {
        this.topApps_ = list;
    }

    public List<OneAppInfoBean> ˏ() {
        return this.latelyUsedApps_;
    }

    public void ॱ(List<OneAppInfoBean> list) {
        this.latelyUsedApps_ = list;
    }

    public int ʻ() {
        return this.topSelectNumber_;
    }

    public void ˋ(int i) {
        this.topSelectNumber_ = i;
    }

    public int ʼ() {
        return this.latelyUsedSelectNumber_;
    }

    public int ᐝ() {
        return this.useTopListThreshold_;
    }

    public String ॱॱ() {
        return this.topListTitle_;
    }

    public String ʽ() {
        return this.latelyUsedListTitle_;
    }

    public String ˊॱ() {
        return this.hasGiftText_;
    }

    public String ˏॱ() {
        return this.latelyUsedDesc_;
    }

    public String ͺ() {
        return this.topListDesc_;
    }

    public boolean ॱˊ() {
        return this.hasGiftApp;
    }

    public void ˏ(boolean z) {
        this.hasGiftApp = z;
    }

    public void ˋॱ() {
        this.topListTitle_ = ContentManager.getInstant().getContext().getResources().getString(h.ॱ);
    }

    public boolean ʻॱ() {
        return CollectCheck.isEmpty(this.topApps_) && CollectCheck.isEmpty(this.latelyUsedApps_);
    }
}
